package ${basePackage}.dao.system.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("系统定时任务日志")
public class QuerySystemJobLogDTO {

    @ApiModelProperty(value = "定时任务ID", example = "1")
    private Integer jobId;

    @ApiModelProperty(value = "分片编码")
    private String snippetCode;

    @ApiModelProperty(value = "分发组")
    private String jobDistributeGroup;

    @ApiModelProperty(value = "业务时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date businessTime;

    @ApiModelProperty(value = "执行任务的服务器IP")
    private String serverIp;

    @ApiModelProperty(value = "触发类型，SYSTEM-系统定时触发，MANUAL-手动触发")
    private String triggerType;

    @ApiModelProperty(value = "状态（0执行失败，1执行成功，2跳过，-1执行中）", example = "1")
    private Byte status;

    @ApiModelProperty(value = "日志创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
}
